package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Author yichao
 * Time  2018/7/12 14:29
 * Dest  单个商品
 */

public class GoodsListBeans implements Parcelable {
    /**
     * goodsSalenum : 1
     * goodsId : 1239
     * listUrl : http://p35r91t1w.bkt.clouddn.com/upload/goods_list_img/d1b3474b-f772-46c7-a528-3e6715663ce7.jpg
     * id : 234
     * goodsName : 舒社超市 客厅 沙发 三位沙发 K002-C 胡桃色
     * serviceStatus : 1
     */

    private int goodsSalenum;
    private int goodsId;
    private String listUrl;
    private int gid;
    private String goodsName;
    private int serviceStatus;

    public int getGoodsSalenum() {
        return goodsSalenum;
    }

    public void setGoodsSalenum(int goodsSalenum) {
        this.goodsSalenum = goodsSalenum;
    }

    public int getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(int goodsId) {
        this.goodsId = goodsId;
    }

    public String getListUrl() {
        return listUrl;
    }

    public void setListUrl(String listUrl) {
        this.listUrl = listUrl;
    }

    public int getId() {
        return gid;
    }

    public void setId(int gid) {
        this.gid = gid;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public int getServiceStatus() {
        return serviceStatus;
    }

    public void setServiceStatus(int serviceStatus) {
        this.serviceStatus = serviceStatus;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.goodsSalenum);
        dest.writeInt(this.goodsId);
        dest.writeString(this.listUrl);
        dest.writeInt(this.gid);
        dest.writeString(this.goodsName);
        dest.writeInt(this.serviceStatus);
    }

    public GoodsListBeans() {
    }

    protected GoodsListBeans(Parcel in) {
        this.goodsSalenum = in.readInt();
        this.goodsId = in.readInt();
        this.listUrl = in.readString();
        this.gid = in.readInt();
        this.goodsName = in.readString();
        this.serviceStatus = in.readInt();
    }

    public static final Parcelable.Creator<GoodsListBeans> CREATOR = new Parcelable.Creator<GoodsListBeans>() {
        @Override
        public GoodsListBeans createFromParcel(Parcel source) {
            return new GoodsListBeans(source);
        }

        @Override
        public GoodsListBeans[] newArray(int size) {
            return new GoodsListBeans[size];
        }
    };
}
